#!/bin/bash

if [[ ! -d /sys/class/gpio/gpio49 ]]; then
	echo 49 > /sys/class/gpio/export
	echo in > /sys/class/gpio/gpio49/direction

	echo 50 > /sys/class/gpio/export
	echo in > /sys/class/gpio/gpio50/direction

	echo 96 > /sys/class/gpio/export
	echo in > /sys/class/gpio/gpio96/direction

	echo 99 > /sys/class/gpio/export
	echo in > /sys/class/gpio/gpio99/direction
fi

echo "$(cat /sys/class/gpio/gpio49/value)\
$(cat /sys/class/gpio/gpio50/value)\
$(cat /sys/class/gpio/gpio96/value)\
$(cat /sys/class/gpio/gpio99/value)\
$(cat /sys/kernel/debug/ci_hdrc.0/role)"
